<?php
$title = "SHOP ANNOUNCEMENT";
$css = "announcement.css";
include_once 'common/top.php';
include_once '../Class/DB.php';
$db=new DB();
$aid=$_GET["id"];
$announcement=$db->get_aid_announcement($aid);
$announcement[0]["content"]=str_replace("\r\n", "<br/>", $announcement[0]["content"]);
$announcement[0]["content"]=str_replace("\r", "<br/>", $announcement[0]["content"]);
$announcement[0]["content"]=str_replace("\n", "<br>", $announcement[0]["content"]);
?>

<div id="announcement">
	<div id="announcement_top"></div>
	<div id="announcement_show">
		<h1><?php echo $announcement[0]["a_name"];?></h1>
		<h2><?php echo substr($announcement[0]["date"],0,4);?>-<?php echo substr($announcement[0]["date"],4,2);?>-<?php echo substr($announcement[0]["date"],6,2);?></h2>
		<p ><?php echo $announcement[0]["content"];?></p>
	</div>
	<div id="announcement_end"></div>
</div>

<?php
include_once 'common/tail.php';
?>